package com.jinpin.oauth;

import com.jinpin.oauth.init.ResourceInit;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;


@EnableDiscoveryClient
@SpringBootApplication
@ComponentScans
        (value = {
                @ComponentScan("com.jinpin.redis"),
                @ComponentScan("com.jinpin.security"),
                @ComponentScan(basePackageClasses = ResourceInit.class),

        })
@MapperScan("com.jinpin.oauth.mapper")
public class OauthApplication {
    public static void main(String[] args) {
        SpringApplication.run(OauthApplication.class,args);
    }


}
